package hello.pojo;

public class Classes {
    /**
     * 
     * 表 : classes
     * 对应字段 : id
     */
    private Integer id;

    /**
     * 
     * 表 : classes
     * 对应字段 : name
     */
    private String name;

    /**
     * 
     * 表 : classes
     * 对应字段 : teacher_id
     */
    private Integer teacherId;

    /**
     *
     */
    public Classes(Integer id, String name, Integer teacherId) {
        this.id = id;
        this.name = name;
        this.teacherId = teacherId;
    }

    /**
     *
     */
    public Classes() {
        super();
    }

    /**
     * get method 
     *
     * @return classes.id：
     */
    public Integer getId() {
        return id;
    }

    /**
     * set method 
     *
     * @param id  
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * get method 
     *
     * @return classes.name：
     */
    public String getName() {
        return name;
    }

    /**
     * set method 
     *
     * @param name  
     */
    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    /**
     * get method 
     *
     * @return classes.teacher_id：
     */
    public Integer getTeacherId() {
        return teacherId;
    }

    /**
     * set method 
     *
     * @param teacherId  
     */
    public void setTeacherId(Integer teacherId) {
        this.teacherId = teacherId;
    }
}